@currencyFont: Consolas, "Bitstream Vera Sans Mono", "Andale Mono", Monaco, "DejaVu Sans Mono", "Lucida Console", monospace;

// Temporary
@media (max-width: @screen-xs-max) {
  .t-login, .t-tou, .t-tou-june-2015, .t-privacypolicy {
    header {
      display: none;
    }
  }
}

body {
  color: @black;
}

nav + .content {
  .border-radius(5px,5px,0,0);

  @media (min-width: @screen-sm-max) {
    -webkit-box-shadow: -3px 0 5px 0 rgba(0, 0, 0, 0.1);
    box-shadow: -3px 0 5px 0 rgba(0, 0, 0, 0.1);
  }
}

h1 {
  height: 100px;
  background: @midblue;
  text-align: center;
  font: 26px 'OpenSansLight';
  font-weight: 300;
  line-height: 100px;
  color: @white;
  margin-top: 0;
}

.steps {
  font-size: 12px;
  color: @darkgray;

  .selected {
    color: @black;
    font-weight: 900;
    border-bottom: 2px solid @darkblue;
  }
}

.order-warning {
  color: @state-danger-text;
  font: 21px 'OpenSansSemibold';
  font-weight: normal;
}

.connectModal {
  .grey-focus {
    background-color: @lightgray;
    margin-bottom: 17px;
    margin-left: -15px;
    margin-right: -15px;
    padding: 16px 25px 17px 27px;
    border: 1px solid @midgray;
    @media (max-width: @screen-xs-max) {
      padding: 16px 10px 17px 10px;
    }
  }

  .modal-logo {
    margin: -.7em -.9em -.6em -.9em;
  }

  .modal-header {
    border: 1px solid transparent;
    border-top-left-radius: @border-radius-base;
    border-top-right-radius: @border-radius-base;
    background-color: @midblue;
    color: @white;
    font-weight: 900;
    font: bold 1.5em 'OpenSansLight';
  }

  .modal-title {
    font-size: 0.8em;
    margin: 0 1.5em 0 1.7em;
  }

  .modal-prompt {
    font-size: .8em;
    padding-left: 60px;
    padding-top: 10px;
    margin-bottom: 16px;
    @media (max-width: @screen-xs-max) {
      padding-left: 10px;
    }
    // margin: -0.7em 3em 0 3.9em;
  }

  .modal-permissions {
    font-size: .7em;
    margin: 0.5em 0;
  }

  .modal-body {
    font: 1.3em 'OpenSansLight';
    // margin: 0 -2.45em 0 -2.40em;
    border: 0;
    margin: 15px 15px 25px 15px;
    padding: 0;
  }
.alert-danger {
    background-color: @notification-warning-background;
  }
  .modal-email {
    font-family: 'OpenSansBold';
    margin: .4em 0 1.2em 0;
  }

  .modal-agreement {
    font: 0.6em 'OpenSansLight';
    color: @darkgray;
    margin: 1em 4em 1.5em 5.6em;
  }

  .modal-error {
    font: 0.6em 'OpenSansLight';
    color: @midred;
    margin: 0 0 0 5.6em;
  }

  .modal-buttons {
    // margin: 0 0 0 3em;
    padding-left: 60px;
  }

  .modal-btn {
    // margin: 0.5em 0.5em;
    // padding: 0.7em 5em;
    margin-right: 15px;
    margin-bottom: 10px;
    // padding: 14px 10px;
    width: 38%;
  }
}

.frozen-account {
  background-color: @lightgray;
}

.content {
  padding-top: @grid-gutter-width/2;
  padding-bottom: @grid-gutter-width/2;
  .rounded(5px);
  min-height: 500px;
  //z-index: 10;


  @media (max-width: @screen-xs-max) {
    .rounded(0);
    min-height: auto;
  }

  &.single {
    margin-left: 15px;
    margin-right: 15px;

    @media (min-width: @screen-sm-max) {
      margin: 20px 50px;
    }
  }

  h2 {
    font: 34px 'OpenSansLight';
    margin: 0 0 30px;
  }

  h3 {
    font: 24px 'OpenSansLight';
    margin: 0 0 20px;
  }

  hr {
    border: 0;
    height: 1px;
    background-color: @midgray;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  group {
    display: block;
  }

  p.literal, span.literal, a.literal {
    font: 16px 'OpenSansRegular';

    &.landing {
      font-size: 14px;
      color: @landingblue;
    }

    strong {
      font-family: 'OpenSansBold';
      font-weight: normal;
    }

    &.spinner {
      position: relative;
      padding-left: 25px;

      .spinnerInner {
        left: 10px !important;
        top: 11px !important;
      }
    }
  }

  p.hint {
    font-size: 1em;
    margin-top: 0;
    color: @landingblue;
  }

  p.lit-small {
    font-size: 14px;
  }

  .throbber {
    min-height: 24px;
    background-image: url(/img/throbber.gif);
    background-repeat: no-repeat;
    padding-left: 24px + 10px;
  }

  span.address {
    font-weight: bold;
  }

  // Transaction status
  //
  // This class is used to show the color-coded messages after submitting a
  // transaction on various pages.
  h2.tx-status {
    background-color: @notification-warning-background;
    color: @notification-warning-text;
    font: 12px 'OpenSansRegular';
    font-weight: normal;
    padding: 15px;
    .transition-duration(0.2s);
    .border-radius(5px,5px,5px,5px);
  }

  .result-success h2.tx-status {
    background-color: @notification-success-background;
    color: @notification-success-text;  }

  .result-error h2.tx-status,
  .result-malformed h2.tx-status,
  .result-failed h2.tx-status {
    background-color: @state-danger-bg;
    color: @state-danger-text;
  }

  // Tabs
  ul.filter-tabs {
    .clearfix;
    list-style-type: none;left: 8px;
    top: 11px;
    font: 18px 'OpenSansRegular';
    margin-bottom: 15px;
    padding-bottom: 10px;
    margin-top: 20px;

    li {
      float: left;
      display: block;

      > a {
        display: block;
        position: relative;
        color: @black;
        line-height: 30px;
        padding-left: 8px;
        padding-right: 16px;
        .transition-duration(0.2s);
        cursor: pointer;

        margin-left: 6px;
        margin-right: 16px;

        /* Alternative Hanging indent
        margin-left: -8px;
        margin-right: 30px;
        /**/

        &:hover {
          text-decoration: none;
        }

        &:after {
          .virtualel;
          height: 100%;
          width: 6px;
          position: absolute;
          top: 0;
          left: -6px;
        }

        // Default color, override this for different colored tabs
        &.active, &:hover, &:after {
          background-color: @midgray;
        }
      }
    }
  }
}

.spinner {
  position: relative;
  padding-left: 25px;

  .spinnerInner {
    left: 10px !important;
    top: 11px !important;
  }
}

// Tooltip
.tooltip {
  opacity: 1 !important;
  min-width: 150px;

  &.bottom .tooltip-arrow {
    border-bottom-color: @midgray;
  }

  .tooltip-inner {
    background: @white;
    border: 1px solid @midgray;
    .border-radius(3px,3px,3px,3px);
    color: @darkgray;
    padding: 8px 15px;
  }

  &.top > .tooltip-arrow {
    border-top-color: @lightgray;
  }

}

// Popover
.popover {
  width: 400px;
  padding: 0;

  h3 {
    margin: 0;
    font: 16px OpenSansRegular;
  }

  &.top .arrow:after {
    border-top-color: @lightgray;
  }

  &.bottom .arrow:after {
    border-bottom-color: @lightgray;
  }

  .popover-content {
    font-size: 14px;
    line-height: 20px;

    strong {
      font-weight: normal;
      font-family: OpenSansBold;
    }
  }
}

.nav {
  .popover {
  width: 200px;
  padding: 0;

  .popover-content {
    font-size: 12px;
    line-height: 16px;
    }
  }

  #migrateBtn {
    padding: 12px;
    color: #fff;
    margin: 8px;
    position: absolute;
    width: 200px;
    right: 10px;
  }
  #migrateBtn:hover {
    background: lighten(#346aa9, 10%);
  }
}

// Pagination
.pagination li {
  cursor: pointer;

  & > .active {
    cursor: default;
  }
}

.insig {
  color: @midgray;
}
.decimalPart {
  color: @darkgray;
  font-size: 0.8em;
}
a.danger {
  color: @midred;
}
.capitalize {
  text-transform: capitalize;
}
.help-icon {
  cursor: pointer;
}

[rp-popup-content] {
  display: none;
}
.modal [rp-popup-content] {
  display: block;
}

.languageSelector {
  .list{
    a {
      display: block;
      padding: 10px;
      .border-radius(5px,5px,5px,5px);
    }
    a:hover {
      background: @midblue;
      color: @white;
      text-decoration: none;
    }
  }
}

.cancel {
  margin: 0 15px;
}

.why {
  font-size: 11px;
}

.ripple-addon {
  font-size: 18px;
}
.alert {
  position: relative;
  .tx-status {
    font: 12px 'OpenSansRegular';
    font-weight: normal;
    margin: 0;
    text-align: left;
  }
  .dismiss {
    position: absolute;
    right: 10px;
    top: 14px;
    font-family: "Helvetica Neue Bold";
    font-size: 21px;
    font-weight: bold;
    color: @black;
    text-decoration: none;
    opacity: 0.2;
    cursor: pointer;
    &:hover {
      opacity: 0.5;
    }
  }
}
.auth-attention {
  margin-bottom: 20px;
  font-size: 13px;
  background: @notification-info-background;
  color: @notification-info-text;
  border: 1px solid @notification-info-border;
  padding: 15px;
  h4 {
    display: inline-block;
    margin-top: 0;
  }
  .close {
    display: inline-block;
    font-size: 21px;
    margin-top: -5px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  }
  .rounded(5px);
  a{
    text-decoration: underline;
    &#hide {
      margin-top: -8px;
      display: inline-block;
      font-size: 21px;
      text-decoration: none;
      color: #000;
      opacity: 0.2;
      font-family: "Helvetica Neue Bold";
      font-weight: bold;
      &:hover {
        opacity: 0.5;
      }
    }
    &:hover {
      text-decoration: none;
    }
  }
  ul {
    margin-bottom: 0;
    padding-left: 18px;
  }
  span {
    font-family: OpenSansBold;
  }
  #announcement {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: -5px;
    padding-left: 5px;
    width: 90%;
  }
}

.warning-attention {
  margin-bottom: 20px;
  font-size: 13px;
  background: @notification-error-background;
  color: @notification-error-text;
  border: 1px solid @notification-info-border;
  padding: 15px;
  h4 {
    display: inline-block;
    margin-top: 0;
  }
  .close {
    display: inline-block;
    font-size: 21px;
    margin-top: -5px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  }
  .rounded(5px);
  a{
    text-decoration: underline;
    &#hide {
      margin-top: -8px;
      display: inline-block;
      font-size: 21px;
      text-decoration: none;
      color: #000;
      opacity: 0.2;
      font-family: "Helvetica Neue Bold";
      font-weight: bold;
      &:hover {
        opacity: 0.5;
      }
    }
    &:hover {
      text-decoration: none;
    }
  }
  ul {
    margin-bottom: 0;
    padding-left: 18px;
  }
  span {
    font-family: OpenSansBold;
  }
  #announcement {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: -5px;
    padding-left: 5px;
    width: 90%;
  }
}

.blank {
  visibility: hidden;
}

rp-pie-chart {
  text {
    font: 17px OpenSansLight, sans-serif;
    pointer-events: none;
  }

  text.percentage {
    font-size: 15px;
    fill: @darkgray;
  }

  .main {
    opacity: 1;
  }

  .sub {
    opacity: 0;
  }

  .hole {
    fill: @white;
    stroke: @white;
  }

  * {
    -webkit-transition: opacity 0.17s;
    -moz-transition   : opacity 0.17s;
    -o-transition     : opacity 0.17s;
    transition        : opacity 0.17s;
  }


  .main.xrp {
    fill: @color-xrp;
    stroke: @color-xrp;
  }
  .sub.xrp {
    fill: darken(@color-xrp, 20%);
    stroke: darken(@color-xrp, 20%);
  }

  .main.usd {
    fill: @color-usd;
    stroke: @color-usd;
  }
  .sub.usd {
    &:nth-of-type(odd) {
      fill: darken(@color-usd, 20%);
      stroke: darken(@color-usd, 20%);
    }
    &:nth-of-type(even) {
      fill: lighten(@color-usd, 20%);
      stroke: lighten(@color-usd, 20%);
    }
  }

  .main.btc {
    fill: @color-btc;
    stroke: @color-btc;
  }
  .sub.btc {
    &:nth-of-type(odd) {
      fill: darken(@color-btc, 20%);
      stroke: darken(@color-btc, 20%);
    }
    &:nth-of-type(even) {
      fill: lighten(@color-btc, 20%);
      stroke: lighten(@color-btc, 20%);
    }
  }

  .main.eur {
    fill: @color-eur;
    stroke: @color-eur;
  }
  .sub.eur {
    &:nth-of-type(odd) {
      fill: darken(@color-eur, 20%);
      stroke: darken(@color-eur, 20%);
    }
    &:nth-of-type(even) {
      fill: lighten(@color-eur, 20%);
      stroke: lighten(@color-eur, 20%);
    }
  }

  .main.cny {
    fill: @color-cny;
    stroke: @color-cny;
  }
  .sub.cny {
    &:nth-of-type(odd) {
      fill: darken(@color-cny, 20%);
      stroke: darken(@color-cny, 20%);
    }
    &:nth-of-type(even) {
      fill: lighten(@color-cny, 20%);
      stroke: lighten(@color-cny, 20%);
    }
  }

  .main.jpy {
    fill: @color-jpy;
    stroke: @color-jpy;
  }
  .sub.jpy {
    &:nth-of-type(odd) {
      fill: darken(@color-jpy, 20%);
      stroke: darken(@color-jpy, 20%);
    }
    &:nth-of-type(even) {
      fill: lighten(@color-jpy, 20%);
      stroke: lighten(@color-jpy, 20%);
    }
  }

  .main.cad {
    fill: @color-cad;
    stroke: @color-cad;
  }
  .sub.cad {
    &:nth-of-type(odd) {
      fill: darken(@color-cad, 20%);
      stroke: darken(@color-cad, 20%);
    }
    &:nth-of-type(even) {
      fill: lighten(@color-cad, 20%);
      stroke: lighten(@color-cad, 20%);
    }
  }


  .main.generic1 {
    fill: @color-generic1;
    stroke: @color-generic1;
  }
  .sub.generic1 {
    &:nth-of-type(odd) {
      fill: darken(@color-generic1, 20%);
      stroke: darken(@color-generic1, 20%);
    }
    &:nth-of-type(even) {
      fill: lighten(@color-generic1, 20%);
      stroke: lighten(@color-generic1, 20%);
    }
  }

  .main.generic2 {
    fill: @color-generic2;
    stroke: @color-generic2;
  }
  .sub.generic2 {
    &:nth-of-type(odd) {
      fill: darken(@color-generic2, 20%);
      stroke: darken(@color-generic2, 20%);
    }
    &:nth-of-type(even) {
      fill: lighten(@color-generic2, 20%);
      stroke: lighten(@color-generic2, 20%);
    }
  }


  .main.other {
    fill: @color-other;
    stroke: @color-other;
  }
  .sub.other {
    fill: darken(@color-other, 20%);
    stroke: darken(@color-other, 20%);
  }
}
